/**
 * @flow
 * https://reactnavigation.org/docs/tab-based-navigation
 * https://reactnavigation.org/docs/screen-options
 */
import React from 'react'
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs'
// import ScreenConfig from './ScreenConfig'

const Tab = createBottomTabNavigator()

import Home from '@p/home/home'
import Profile from '@p/profile/profile'

const TabNavigator = () => {
  return (
    <Tab.Navigator initialRouteName='home' screenOptions={{headerShown: false}}>
      <Tab.Screen name='home' component={Home} />
      <Tab.Screen name='profile' component={Profile} />
    </Tab.Navigator>
  )
}

export default TabNavigator
